﻿using Newtonsoft.Json;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 更新配置参数模型
    /// </summary>
    public class UpdateConfigParam
    {
        public List<ConfigData> List { get; set; } = new List<ConfigData>();
       
        ///// <summary>
        ///// 主键ID
        ///// </summary>
        //[JsonProperty("id"), JsonPropertyName("id")]
        //[Required(ErrorMessage = nameof(ErrorResultEnum.IdIsNull))]
        //public long Id { get; set; }

        ///// <summary>
        ///// 参数值
        ///// </summary>
        //[JsonProperty("config_value"), JsonPropertyName("config_value")]
        //[Required(ErrorMessage = nameof(ErrorResultEnum.ConfigValueIsNull))] 
        //public string ConfigValue { get; set; }

        ///// <summary>
        ///// 控件类型
        ///// </summary>
        //[JsonProperty("control_type"), JsonPropertyName("control_type")]
        //public string ControlType { get; set; }
        ///// <summary>
        ///// 控件图标
        ///// </summary>
        //[JsonProperty("control_icon"), JsonPropertyName("control_icon")]
        //public string ControlIcon { get; set; }

    }
}
